import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { Tab1Page } from './tab1.page';
import { VstudyInfoComponent } from '../vstudy-info/vstudy-info';
import { VstudyViewComponent } from '../vstudy-view/vstudy-view.component';
const routes: Routes = [
  {
    path: '',
    component: Tab1Page,
   //children: [
    // {
      //path: 'vsinfo',
       //component: VstudyInfoComponent
        
      //}
  
    //]
  },
  //{
     //redirectTo: '/tabs/tab2',
      //pathMatch: 'full',
     // path: 'vsinfo',
     //component: VstudyInfoComponent
  //},
  {
    path: 'vsinfo',
     component: VstudyInfoComponent
      
    },

  {
    path: 'vsinfo/:item',
      component: VstudyInfoComponent
  },
  {
    path: 'vsView/:videoUrl',
     component: VstudyViewComponent
      
    },
    {
      path: 'vsView/:videoUrl/:videoName',
       component: VstudyViewComponent
        
      },
      {
        //redirectTo: '/tabs/tab1',
        pathMatch: 'full',
        path: 'vsView/:videoUrl/:videoName/:attId',
        component: VstudyViewComponent
      }
 



];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class Tab1PageRoutingModule {}
